<%-- 
    Document   : dataConfig
    Created on : 2015-8-11, 19:10:08
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link href='../css/amazeui.min.css'  rel='stylesheet' type='text/css' />

        <link href='../css/font-awesome.css' rel='stylesheet' type='text/css' />

        <script type="text/javascript" src="../js/jquery-1.9.1.js"></script>
        <script  type="text/javascript" src="../js/amazeui.min.js"></script>
        <script  type="text/javascript" src="../js/angular/angular.min.js"></script>
        <script  type="text/javascript" src="../js/jquery.cxhd.js"></script>
        <script  type="text/javascript" src="dataConfig.js"></script>
    </head>
    <body style="font-size: 14px;">
        <div class="am-container" ng-app="dataConfig" ng-controller="mainController">
            <div class="am-u-sm-12" >
                <form class="am-form am-form-horizontal" role="form" id="basic_form" name="basic_form" >
                    <div class="am-panel am-panel-default">
                        <div class="am-panel-hd am-text-primary" style="color: #0e90d2;font-weight: bold">中心服务器信息</div>
                        <div class="am-panel-bd">
                            
                             <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="serverType" class="am-u-sm-4 am-form-label">云服务地址</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.atlasServer"  class="am-form-field"  style="font-size: 8px;" type="text" id="atlasServer"  placeholder="云服务地址">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="pat_id" class="am-u-sm-4 am-form-label">中心服务地址</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.centerHost"  class="am-form-field"  style="font-size: 8px;" type="text" id="pat_id"  placeholder="中心服务地址">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="pat_id" class="am-u-sm-4 am-form-label">端口</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.port"  class="am-form-field"  style="font-size: 8px;" type="text" id="pat_id"  placeholder="病历号">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="pat_id" class="am-u-sm-4 am-form-label">用户名</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.username"  class="am-form-field"  style="font-size: 8px;" type="text" id="pat_id"  placeholder="病历号">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="pat_id" class="am-u-sm-4 am-form-label">密码</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.password"  class="am-form-field"  style="font-size: 8px;" type="password" id="pat_id"  placeholder="密码">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="checkHost" class="am-u-sm-4 am-form-label">检查下载地址</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.checkHost"  class="am-form-field"  style="font-size: 8px;" type="text" id="checkHost"  placeholder="检查下载地址">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="SN" class="am-u-sm-4 am-form-label">SN</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.SN"  class="am-form-field"  style="font-size: 8px;" type="text" id="SN"  placeholder="SN">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                             <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="autoTask" class="am-u-sm-4 am-form-label">自动启动任务</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.autoTask"   style="font-size: 8px;" type="checkbox" id="autoTask"  placeholder="">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            
                              <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="returnReportFlag" class="am-u-sm-4 am-form-label">返回报告</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.returnReportFlag"   style="font-size: 8px;" type="checkbox" id="returnReportFlag"  placeholder="">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                             <div class="am-u-lg-12 am-u-md-12 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="report_sn" class=" am-form-label">返回报告列表</label>
                                    <div class="am-u-sm-12">
                                        <textarea id="report_sn" style="width: 100%;height: 100px;" ng-model="config.report_sn"></textarea>
<!--                                        <input    ng-model="config.returnReportFlag"   style="font-size: 8px;" type="checkbox" id="returnReportFlag"  placeholder="">
                                                                            <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            
                            
                             <div class="am-u-lg-12 am-u-md-12 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="moveFile_sn" class=" am-form-label">文件其他处理</label>
                                    <div class="am-u-sm-12">
                                        <textarea id="moveFile_sn" style="width: 100%;height: 100px;" ng-model="config.moveFile_sn"></textarea>
<!--                                        <input    ng-model="config.returnReportFlag"   style="font-size: 8px;" type="checkbox" id="returnReportFlag"  placeholder="">
                                                                            <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                                 <div></div>
                            </div>
                            
                            <div class="am-u-lg-12 am-u-md-12 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="moveFile_sn" class=" am-form-label">报告转存路径</label>
                                    <div class="am-u-sm-12">
                                        <input    ng-model="config.rptPath"  class="am-form-field"  style="font-size: 8px;" type="text" id="SN"  placeholder="">
                                    
                                    </div>
                                </div> 
                                 <div></div>
                            </div>





                            <div style='clear: both'></div>
                        </div>
                    </div>

                    <div class="am-panel am-panel-default">
                        <div class="am-panel-hd am-text-primary" style="color: #0e90d2;font-weight: bold">本地服务器</div>
                        <div class="am-panel-bd">
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="AET" class="am-u-sm-4 am-form-label">AET</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.AET"  class="am-form-field"  style="font-size: 8px;" type="text" id="AET"  placeholder="AET">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="ae_ip" class="am-u-sm-4 am-form-label">ae_ip</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.ae_ip"  class="am-form-field"  style="font-size: 8px;" type="text" id="ae_ip"  placeholder="ae_ip">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="ae_port" class="am-u-sm-4 am-form-label">ae_port</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.ae_port"  class="am-form-field"  style="font-size: 8px;" type="text" id="ae_port"  placeholder="ae_port">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="dicomFolder" class="am-u-sm-4 am-form-label">存放dicom</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.dicomFolder"  class="am-form-field"  style="font-size: 8px;" type="text" id="dicomFolder"  placeholder="存放dicom路径">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="basePath" class="am-u-sm-4 am-form-label">根目录</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.basePath"  class="am-form-field"  style="font-size: 8px;" type="text" id="basePath"  placeholder="根目录">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="scanReportFolder" class="am-u-sm-4 am-form-label">扫描报告路径</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.scanReportFolder"  class="am-form-field"  style="font-size: 8px;" type="text" id="scanReportFolder"  placeholder="扫描报告路径">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                             <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="cacheServer" class="am-u-sm-4 am-form-label">缓存服务地址</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.cacheServer"  class="am-form-field"  style="font-size: 8px;" type="text" id="cacheServer"  placeholder="Atlas1@127.0.0.1:11118">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="cacheServer" class="am-u-sm-4 am-form-label">缓存到硬盘</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.gcache"  class="am-form-field"  style="font-size: 8px;" type="text" id="cacheServer"  placeholder="">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="" class="am-u-sm-4 am-form-label">启动webs服务</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.startWeb"  class="am-form-field"  style="font-size: 8px;" type="text" id="cacheServer"  placeholder="0">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="" class="am-u-sm-4 am-form-label"> 发送pacs线程数 </label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.sendPacsThread"  class="am-form-field"  style="font-size: 8px;" type="text" id="cacheServer"  placeholder="">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            
                             <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="" class="am-u-sm-4 am-form-label"> 接收后处理模式 </label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.recFileMode"  class="am-form-field"  style="font-size: 8px;" type="text" id="recFileMode"  placeholder="">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                             <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="" class="am-u-sm-4 am-form-label">是否修改ID </label>
                                    <div class="am-u-sm-8">
                                        <input type="checkbox" ng-model="config.pattientIdEdit"  class="am-form-field"  style="font-size: 8px;" id="recFileMode"  placeholder="">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            <div style="clear: both"></div>
                        </div>
                    </div>
                    
                    
                     <div class="am-panel am-panel-default">
                        <div class="am-panel-hd am-text-primary" style="color: #0e90d2;font-weight: bold">消息提醒</div>
                        <div class="am-panel-bd">
                            

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="ae_ip" class="am-u-sm-4 am-form-label">消息服务器</label>
                                    <div class="am-u-sm-8">
                                        <input ng-model="config.messageServer"  class="am-form-field"  style="font-size: 8px;" type="text" id="messageServer"  placeholder="消息服务器">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                             <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="ae_ip" class="am-u-sm-4 am-form-label">组群ID</label>
                                    <div class="am-u-sm-8">
                                        <input    ng-model="config.groupId"  class="am-form-field"  style="font-size: 8px;" type="text" id="groupId"  placeholder="群组Id">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="ae_port" class="am-u-sm-4 am-form-label">是否发送消息</label>
                                    <div class="am-u-sm-8">
                                           <input    ng-model="config.sendMessageFlag"   style="font-size: 8px;" type="checkbox" id="sendMessageFlag"  placeholder="">
                                     <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>

                            
                            <div style="clear: both"></div>
                        </div>
                    </div>
                    
                    
                    
                    
                    
                     <div class="am-panel am-panel-default">
                        <div class="am-panel-hd am-text-primary" style="color: #0e90d2;font-weight: bold">云存储配置</div>
                        <div class="am-panel-bd">
                            

                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="atlasFileServer" class="am-u-sm-4 am-form-label">云备份地址</label>
                                    <div class="am-u-sm-8">
                                        <input ng-model="config.atlasFileServer"  class="am-form-field"  style="font-size: 8px;" type="text" id="atlasFileServer"  placeholder="云备份地址">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
                            
                            <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="noticeNo" class="am-u-sm-4 am-form-label">影像未到短信通知</label>
                                    <div class="am-u-sm-8">
                                        <input ng-model="config.noticeNo"  class="am-form-field"  style="font-size: 8px;" type="text" id="noticeNo"  placeholder="手机号码">
                                        <!--                                    <span class="am-icon-star"></span>-->
                                    </div>
                                </div> 
                            </div>
<!--                             <div class="am-u-lg-6 am-u-md-6 am-u-sm-12">
                                <div class="am-form-group ">
                                    <label for="atlasFileServer" class="am-u-sm-4 am-form-label">更新地址</label>
                                    <div class="am-u-sm-8">
                                        <input ng-model="config.updateUrl"  class="am-form-field"  style="font-size: 8px;" type="text" id="atlasFileServer"  placeholder="云备份地址">
                                                                            <span class="am-icon-star"></span>
                                    </div>
                                </div> 
                            </div>-->
                             
                            
                            <div style="clear: both"></div>
                        </div>
                    </div>
                </form>
                <div class="am-u-lg-12">
                    <button class="am-btn am-btn-success " style="float: right" ng-click="saveConfig()"><i class="fa fa-save"></i>保存</button>
                     <button class="am-btn am-btn-info " style="float: right" ng-click="startTask()">启动任务</button>
                     <button class="am-btn am-btn-danger " style="float: right" ng-click="closeTask()">关闭任务</button>
                 <button class="am-btn am-btn-default " style="float: right" ng-click="restartTask()">重启任务</button>
                </div>
            </div>

        </div>
    </body>
</html>
